// this class deals with starting/stopping/editing/downloaded/removing
// torrents

// urls for performing operations on torrents
/*
 * download "http://server.imageshack.us/tor/browse/?id=id";
 * edit "http://server.imageshack.us/tor/?action=detail&torrentmeta_id=id"
 * remove "http://server.imageshack.us/tor/?action=remove&torrentmeta_id=id&c=1"
 * start "http://server.imageshack.us/tor/?action=run&torrentmeta_id=id&mod=start"
 * stop "http://server.imageshack.us/tor/?action=run&torrentmeta_id=id&mod=stop"
 */
var Bases = ["http://","imageshack.us/tor/","?action=","&torrentmeta_id="]
function StartTorrent(Item) {
	
}

function StopTorrent(Item) {
	Control.contentDocument.location.href=Bases[0]+Item.server+Bases[1]+Bases[2]+"run"+Bases[3]+Item.id+"&mod=stop";
}

function EditTorrent(Item) {
	
}

function DownloadTorrent(Item) {
	
}

function RemoveTorrent(Item) {
	if (Comms.RemoveResponse=="true") {
		Control.contentDocument.location.href=Bases[0]+Item.server+Bases[1]+Bases[2]+"remove"+Bases[3]+Item.id+"&c=1";
	}
}